package com.sea.onlinejudge.service.impl;

import com.sea.onlinejudge.dao.TestDao;
import com.sea.onlinejudge.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;

@Service("testService")
public class TestServiceImpl implements TestService {
    @Autowired
    TestDao testDao;

    @Override
    public ArrayList getAllInfo() {
        return testDao.getAllInfos();
    }

    @Override
    public HashMap getInfoById(String id) {
        return testDao.getInfoById(id);
    }

    @Override
    public HashMap getInfo(HashMap data) {
        return testDao.getInfo(data);
    }
}
